import { compose } from 'redux';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import { accountsWithSendEtherInfoSelector } from '../../../../selectors';
import ViewContact from './my-accounts.component';

const mapStateToProps = (state) => {
  const myAccounts = accountsWithSendEtherInfoSelector(state);

  return {
    myAccounts,
  };
};

export default compose(withRouter, connect(mapStateToProps))(ViewContact);
